From: Georges Basile Stavracas Neto Date: Thu, 21 Nov 2019 21:03:34 +0000 (-0300) Subject: allView: Rename variable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~398 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cae69b3a88586e4bd416b62c365d64f847c7c72e;p=gnome-shell.git allView: Rename variable The variable that holds the list of application icons is called 'newApps', but that technically was never true, since we only create new app icons when necessary. Rename it to 'appIcons'. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/841 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 838fef607..a49ebe09a 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -453,7 +453,7 @@ var AllView = GObject.registerClass({ } _loadApps() { - let newApps = []; + let appIcons = []; this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => { try { appInfo.get_id(); // catch invalid file encodings @@ -478,7 +478,7 @@ var AllView = GObject.registerClass({ icon.connect('name-changed', this._itemNameChanged.bind(this)); icon.connect('apps-changed', this._redisplay.bind(this)); } - newApps.push(icon); + appIcons.push(icon); this.folderIcons.push(icon); }); @@ -500,10 +500,10 @@ var AllView = GObject.registerClass({ }); } - newApps.push(icon); + appIcons.push(icon); }); - return newApps; + return appIcons; } // Overridden from BaseAppView